package com.feng.cloud.common.configure;

import com.feng.cloud.common.handler.FengAuthExceptionEntryPoint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName AuthExceptionConfigure
 * @Description TODO
 * @Author Better Feng
 * @Date 2019/12/20 14:38
 * @Version 1.0
 **/
public class AuthExceptionConfigure {

    @Bean
    @ConditionalOnMissingBean(name = "authenticationEntryPoint")
    public FengAuthExceptionEntryPoint authenticationEntryPoint() {
        return new FengAuthExceptionEntryPoint();
    }
}
